<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>找回密码</title>
    
	<meta http-equiv="pragma" content="no-cache">
<link href="images/css.css"  rel="stylesheet" type="text/css" />
	<script type='text/javascript' src='<%=basePath %>/dwr/engine.js'></script>
 	<script type='text/javascript' src='<%=basePath %>/dwr/util.js'></script>
<script type="text/javascript" src="<s:url value="/js/jquery-1.4.2.min.js"/>"></script>
 <script type='text/javascript' src='js/jquery.validate.min.js'></script>
 <script type='text/javascript' src='js/common.js'></script>

<script type="text/javascript">
 function checkVal(){
 		var pwdQuestionResutl =  $.trim($("#pwdQuestionResutl").val());
 		var queryAnswer =  $.trim($("#queryAnswer").val());
 		var account =  $.trim($("#account").val());
 	//	alert("pwdQuestionResutl= "+pwdQuestionResutl);
 	//	alert("queryAnswer= "+queryAnswer);
 	//	alert("account= "+account);
 		if(queryAnswer ==""){
 			 $("#errInfoSpan").html("&nbsp;请输入密码查询答案.");
 			 return false;
 		}else{
 			if(pwdQuestionResutl != queryAnswer){
 				$("#errInfoSpan").html("&nbsp;密码查询答案输入错误.");
 				return false;
 			}
 			$("#errInfoSpan").html("");
 		}
 		
 		return true;
 }
 
 //表单提交
 function answerSubmit(){
 	if(!checkVal()){
 		return false;
 	}else{
 		document.zhmm2Frm.submit();
 	}
 }

</script>

  </head>
  
  <body>
  <!--顶部-->
  <s:action name="showTop" executeResult="true"/>

  <form action="userRegister!fwdRetrievedPwd2.action" name ="zhmm2Frm" id="zhmm2Frm" method="post">
    	<table width="796" height="383" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F1F1F1">
  <tr>
    <td width="796" height="26" align="left" valign="top"><span class="STYLE1">&nbsp;首页 &gt;&nbsp;&nbsp;找回密码</span></td>
  </tr>
  <tr>
    <td height="357" align="center" valign="top" bgcolor="#FFFFFF" style="border:1px solid #C5C5C5; padding:1px ;"><table width="100%" height="32" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="1%" height="32" background="images/sp_bg.jpg">&nbsp;</td>
        <td width="3%" align="center" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><img src="images/dian.jpg" width="10" height="16" /></td>
        <td width="95%" align="left" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><span class="STYLE3">找回密码</span></td>
        <td width="1%" background="images/sp_bg.jpg">&nbsp;</td>
      </tr>
    </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="8">&nbsp;</td>
          </tr>
        </table>
        <table width="656" height="21" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="208" height="21" align="center" bgcolor="#DEDEDE"><span class="STYLE4">1.填写登录名</span></td>
            <td width="16"><img src="images/H_3.jpg" width="18" height="21" /></td>
            <td width="208" align="center" bgcolor="#F6AD47" class="STYLE4">2.填写密码查询答案</td>
            <td width="16"><img src="images/H_1.jpg" width="16" height="21" /></td>
            <td width="208" align="center" bgcolor="#DEDEDE" class="STYLE4">3.重置密码</td>
          </tr>
        </table>
      <table width="649" height="224" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="41" align="center">&nbsp;</td>
        </tr>
          <tr>
            <td height="66" align="center" class="STYLE5"><table width="649" height="183" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="18" align="center">
                		<span id="errInfoSpan" style="color:red"></span>
                </td>
              </tr>
              <tr>
                <td height="119" align="center" class="STYLE5">
                <table width="447" height="91" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="107" height="37" align="right">密码查询问题： </td>
                      <td width="340" align="left"><s:property value="#session.retUserObj.pwdQuestion"/></td>
                    </tr>
                    <tr>
                      <td width="107" height="32" align="right">密码查询答案：</td>
                        <td width="340" align="left" valign="middle">
                      	<input name="pwdQuestionResutl" id="pwdQuestionResutl" type="text" size="20"  style="border:1px solid #DBDBDB; height:22px;"/>
                       <%-- <span class="STYLE12"></span>--%>
							
						
                        </td>
                        <input type="hidden" name="queryAnswer" id="queryAnswer" value='<s:property value="#session.retUserObj.pwdAnswer"/>'/>
 						<input type="hidden" name="account" id="account" value='<s:property value="#session.retUserObj.account"/>'/>
                    </tr>

                </table>
                </td>
              </tr>
              <tr>
                <td height="46" align="center" class="STYLE5">
                <img src="images/tj1.jpg" onclick="javascript:answerSubmit();" style="cursor:hand" width="149" height="24" />
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
    	
    	</form>
<table height="80">
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
    
  </body>
</html>
	<!--底部-->
<s:action name="showComment" executeResult="true"/>
<%@include file="foot_end.jsp"%>